package com.grocery.dao;

import com.grocery.bean.Useraddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressDao {
    int addAddress(@Param("useraddress") Useraddress useraddress);
    int updateAddress(@Param("useraddress") Useraddress useraddress);
    int deleteAddress(@Param("id") int id);
    List<Useraddress> getAddressByUserID(@Param("userid") int userid);
    List<Useraddress> getAddressByUserIDAll(@Param("userid") int userid);
    Useraddress getAddressByID(@Param("id") int id);
}
